﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using DAO;
using DTO;

namespace BUS
{
    public class DonDatHangBUS
    {
        public static bool Insert(DonDatHangDTO ddh)
        {
            try
            {
                return DonDatHangDAO.Insert(ddh);
            }
            catch (Exception ex)
            {
                throw ex;
            }
        }

        public static bool Update(DonDatHangDTO ddh)
        {
            try
            {
                return DonDatHangDAO.Update(ddh);
            }
            catch (Exception ex)
            {
                throw ex;
            }
        }

        public static int Select_MaDDH_Max()
        {
            return DonDatHangDAO.Select_MaDDH_Max();
        }
    }
}
